package kotlindemo.com.kotlindemo

/**
 * Created by ChenLinWang
on 2018/10/26 0026.
 */
class Student : School {
    val name = ""
    var age: String = ""
        get() = field.toUpperCase()
        set(value) {
            field = "Name:$value"
        }

    override fun goToSchool() {
        super.goToSchool()
        println("去学校")
    }

    override fun doHomeWork() {
        super.doHomeWork()
    }
}